package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {
    //分页查询
    PageResult queryPage(QueryPageBean queryPageBean);
     //新增权限
    void addPermission(Permission permission);
    //编辑权限
    void editPermission(Permission permission);
    //删除权限
    Result delete(Integer id);
     //根据权限ID查找关联的角色ID
    List<Integer> findByRoleid(Integer id);
    //查询所有
    List<Permission> findAll();
    //根据id查询对应权限
    Permission findPermissionById(Integer id);
}
